<?php
class Model_TopPage extends MVC_MODEL {
	/**
	 * @var object SQL
	 */
	public $oDb_toppage;
	private $rsListSiteMap ;
	
	public function __construct(){
		parent::__construct();
		$this->oDb_toppage = new Db_TopPage();
	}
	public function getAllProductToday()
	{
		return $this->oDb_toppage->getAllProductToday($this);
	}
	
	public function getListGroupCategory()
	{
		return $this->oDb_toppage->getListGroupCategory($this);
	}
	
	public function getQtyProductOfCategory($cat_id)
	{
		return $this->oDb_toppage->getQtyProductOfCategory($cat_id);
	}
	//public function getAllStaticCategory()
//	{
//		return $this->oDb_toppage->getAllStaticCategory($this);
//	}
	public function getListStaticCategoryChild($parent_id)
	{
		return $this->oDb_toppage->getListStaticCategoryChild($parent_id);
	}
	
	public function getListMessage()
	{
		return $this->oDb_toppage->getListMessage($this);
	}
	
	public function getInfoUserById($id)
	{
		return $this->oDb_toppage->getInfoUserById($id);
	}
	
	public function check_size($id)
	{
		return $this->oDb_toppage->check_size($id);
	}
	public function getTotalItems(){
		return $this->oDb_toppage->getTotalItems();
	}
	public function getTitleItems(){
		return $this->oDb_toppage->getTitleItems();
	}
	public function getPhotoItems(){
		return $this->oDb_toppage->getPhotoItems();
	}
	public function getSizeItems(){
		return $this->oDb_toppage->getSizeItems();
	}
	public function getExplainationItems(){
		return $this->oDb_toppage->getExplainationItems();
	}
	public function getDoneItems(){
		return $this->oDb_toppage->getDoneItems();
	}
	
}
?>
	